import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'todolist',
    component: () => import("@/components/todolist/base-box.vue")
  },
  {
    path: '/elementplus',
    name: 'elementplus',
    component: () => import("@/components/elementplus/base-box.vue")
  },
  {
    path: '/slot',
    name: 'slot',
    component: () => import("@/components/slot/slot-base.vue")
  },
  {
    path: "/:pathMatch(.*)*",
    redirect: "/"
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
